package com.wwj.core.wawa.entity;

import com.wwj.framework.entity.BaseIdEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Administrator on 2017/11/2.
 */
public class WaWaMachine extends BaseIdEntity<Integer> {

    public static final int OFFLINE = 0;//离线

    public static final int ONLINE = 1;//在线

    public static final int STATUS_INIT = 0;//初始化

    public static final int STATUS_IDLE = 1;//空闲

    public static final int STATUS_PROGRESS = 2;//使用中

    public static final int STATUS_REPAIR = 3;//维护

    private String code;

    private String ip;

    private String roomId;

    private String channelName;

    private String cId1;

    private String cId2;

    private Integer status;

    private Integer currentPlayerId;

    private String currentKey;

    private Integer isOnline;

    private BigDecimal probability;

    private Date createTime;

    private Date updateTime;

    public WaWaMachine() {
    }

    public WaWaMachine(String code) {
        this(null, code);
    }

    public WaWaMachine( String ip, String code) {
        this(ip,code,null);
    }
    public WaWaMachine(String ip, String code,  String roomId) {
        this.ip = ip;
        this.code = code;
        this.roomId = roomId;
        this.isOnline = ONLINE;
        this.status = STATUS_IDLE;
    }
    public WaWaMachine( String ip, String code, String roomId, String channelName, String cId1, String cId2) {
        this.ip = ip;
        this.code = code;
        this.roomId = roomId;
        this.channelName = channelName;
        this.cId1 = cId1;
        this.cId1 = cId2;
        this.isOnline = ONLINE;
        this.status = STATUS_IDLE;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getCId1() {
        return cId1;
    }

    public void setCId1(String cId1) {
        this.cId1 = cId1;
    }

    public String getCId2() {
        return cId2;
    }

    public void setCId2(String cId2) {
        this.cId2 = cId2;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCurrentPlayerId() {
        return currentPlayerId;
    }

    public void setCurrentPlayerId(Integer currentPlayerId) {
        this.currentPlayerId = currentPlayerId;
    }

    public String getCurrentKey() {
        return currentKey;
    }

    public void setCurrentKey(String currentKey) {
        this.currentKey = currentKey;
    }

    public Integer getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(Integer isOnline) {
        this.isOnline = isOnline;
    }

    public BigDecimal getProbability() {
        return probability;
    }

    public void setProbability(BigDecimal probability) {
        this.probability = probability;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
